package com.youease.chris.model.vo
{
	import flash.utils.Dictionary;

	public class MapData
	{
		private var _name:String;
		private var _type:int;
		private var _mapRows:int;
		private var _mapCols:int;
		private var _tileWidth:Number;
		private var _tileHeight:Number;
		private var _layers:Vector.<LayerData>;
		public var crossData:Dictionary = new Dictionary();
		
		public function MapData(name:String)
		{
			this._name = name;
			_layers = new Vector.<LayerData>();
		}
		
		public function set name(name:String):void {
			this._name = name;
		}
		
		public function get name():String {
			return this._name;
		}
		
		public function set type(type:int):void {
			this._type = type;
		}
		
		public function get type():int {
			return this._type;
		}
		
		public function set mapRows(rows:int):void {
			this._mapRows = rows;
		}
		
		public function get mapRows():int {
			return this._mapRows;
		}
		
		public function set mapCols(cols:int):void {
			this._mapCols = cols;
		}
		
		public function get mapCols():int {
			return this._mapCols;
		}
		
		public function set tileWidth(tileWidth:Number):void {
			this._tileWidth = tileWidth;
		}
		
		public function get tileWidth():Number {
			return this._tileWidth;
		}
		
		public function set tileHeight(tileHeight:Number):void {
			this._tileHeight = tileHeight;
		}
		
		public function get tileHeight():Number {
			return this._tileHeight;
		}
		
		public function get layers():Vector.<LayerData> {
			return this._layers;
		}
		
		public function set layers(layers:Vector.<LayerData>):void {
			this._layers = layers;
			
		}
	}
}